<?php
$this
	->widget('zii.widgets.grid.CGridView',
		array(
			'id' => 'material-requisition-item-grid',
			'dataProvider' => new CArrayDataProvider($items,
				array(
					'pagination' => false
				)),
			'template' => "{items}",
			'enablePagination' => false,
			'columns' => array(
				array(
					'header' => '',
					'type' => 'raw',
					'value' => '$row+1'
				),
				array(
					'header' => '物品',
					'name' => 'materialModelId',
					'type' => 'raw',
					'value' => 'CHtml::link($data->materialModel->modelName,array("materialStatistic/viewProject","id"=>$data->id,"projectId"=>'
						. $project->id . '),array("target"=>"_blank"))'
				),
				array(
					'name' => 'brand',
					'header' => '品牌',
				),
				array(
					'name' => 'amount',
					'type' => 'amount',
					'header' => '数量',
				),
				array(
					'name' => 'unit',
					'header' => '单位',
				),
				array(
					'name' => 'amountStandardUnit',
					'type' => 'amount',
					'header' => '折合标准数量',
				),
				array(
					'name' => 'materialModel.unit',
					'header' => '标准单位',
				),
				array(
					'name' => 'applicantId',
					'type' => 'raw',
					'value' => '$data->applicant->fullName',
					'header' => '申购人',
				),
				array(
					'name' => 'note',
					'header' => '备注',
				),
				array(
					'name' => 'lateSubmit',
					'type' => 'boolean',
					'header' => '是否补交',
				),/*'createUserId',
				  'updateTime',
				  'updateUserId',array('name' =>
				  'createTime',
				   */
			),
		));
